FROM hsnet1987/itsystem:1.0

RUN rm -rf /var/www/html

# copy source code
RUN git clone https://gitee.com/cklist/IT-System.git /var/www/html

RUN rm -f /var/www/html/public/.user.ini

RUN  chmod -R 777  /var/www/html/*

# cd
WORKDIR /var/www/html

# composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

RUN composer require dcat/laravel-admin:"2.*" -vvv

EXPOSE 80


